<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>二次开发 | DiscuzQ Mobile App Doc</title>
    <meta name="description" content="DiscuzQ App document for building your application">
    <link rel="icon" href="/logo.png">
    
    <link rel="preload" href="/assets/css/0.styles.ac58cff0.css" as="style"><link rel="preload" href="/assets/js/app.cb591399.js" as="script"><link rel="preload" href="/assets/js/2.4852b8e0.js" as="script"><link rel="preload" href="/assets/js/7.2c700988.js" as="script"><link rel="prefetch" href="/assets/js/3.f88216ef.js"><link rel="prefetch" href="/assets/js/4.f3be68de.js"><link rel="prefetch" href="/assets/js/5.3e654332.js"><link rel="prefetch" href="/assets/js/6.dccfc335.js"><link rel="prefetch" href="/assets/js/8.83147140.js">
    <link rel="stylesheet" href="/assets/css/0.styles.ac58cff0.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">DiscuzQ Mobile App Doc</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/docs/build.html" class="nav-link">快速构建</a></div><div class="nav-item"><a href="/docs/develop.html" class="nav-link router-link-exact-active router-link-active">二次开发</a></div><div class="nav-item"><a href="https://github.com/virskor/DiscuzQ" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Github
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/docs/build.html" class="nav-link">快速构建</a></div><div class="nav-item"><a href="/docs/develop.html" class="nav-link router-link-exact-active router-link-active">二次开发</a></div><div class="nav-item"><a href="https://github.com/virskor/DiscuzQ" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Github
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>二次开发</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/develop.html#基础组件" class="sidebar-link">基础组件</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/docs/develop.html#状态拓展" class="sidebar-link">状态拓展</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/docs/develop.html#数据模型" class="sidebar-link">数据模型</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/docs/develop.html#接口请求类" class="sidebar-link">接口请求类</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/docs/develop.html#性能优化建议" class="sidebar-link">性能优化建议</a><ul class="sidebar-sub-headers"></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="二次开发"><a href="#二次开发" class="header-anchor">#</a> 二次开发</h1> <p>暂时不建议Clone源代码并进行二次开发，因为还在后期Review过程中代码变化会很大。</p> <h2 id="基础组件"><a href="#基础组件" class="header-anchor">#</a> 基础组件</h2> <p>为了统一的UI染视觉目标，我们封装了一些组来让您也可以进行复用并开发。他们包含在 widgets/common 下，包含text,toast,等。有的组件，会在黑暗或者不同主题下构建适应的颜色，这样一来便可以缩减一些嵌套。</p> <ul><li>DiscuzText</li> <li>DiscuzButton</li></ul> <h2 id="状态拓展"><a href="#状态拓展" class="header-anchor">#</a> 状态拓展</h2> <p>实际上我们并没有使用Redux，而是使用了ScopedModel。</p> <h2 id="数据模型"><a href="#数据模型" class="header-anchor">#</a> 数据模型</h2> <p>待补全</p> <h2 id="接口请求类"><a href="#接口请求类" class="header-anchor">#</a> 接口请求类</h2> <p>待补全</p> <h2 id="性能优化建议"><a href="#性能优化建议" class="header-anchor">#</a> 性能优化建议</h2> <p>待补全</p></div> <footer class="page-edit"><!----> <!----></footer> <!----> </main></div><div class="global-ui"></div></div>
    <script src="/assets/js/app.cb591399.js" defer></script><script src="/assets/js/2.4852b8e0.js" defer></script><script src="/assets/js/7.2c700988.js" defer></script>
  </body>
</html>
